package com.alpha.eceasy.mall.service;

import com.alpha.eceasy.extension.BaseService;
import com.alpha.eceasy.mall.api.dto.MallOrderDTO;
import com.alpha.eceasy.mall.api.entity.MallCommodityDetail;
import com.alpha.eceasy.mall.api.entity.MallOrder;
import com.alpha.eceasy.mall.api.vo.MallOrderVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface MallOrderService extends BaseService<MallOrder> {
    /**
     * 通过id查询订单
     *
     * @param id 订单id
     * @return 订单扩展信息
     */
    MallOrderVO getByGuidVO(String id);

    /**
     * 分页查询
     *
     * @param page     分页
     * @param payOrder 查询条件
     * @return 分页结果
     */
    IPage<MallOrderVO> pageOrderVO(Page<MallOrder> page, MallOrderDTO payOrder);
}
